#include <stdio.h>
int main()
{
	freopen("zz_test\\test1.in", "r", stdin);
	freopen("zz_test\\test1.out", "w", stdout);
	
	int n = 0;
	scanf("%d", &n);
	int t = 1;
	for ( int i = 1; i <= n; i++ ) {
		for ( int j = 0; j < n - i; j++ ) {
			printf(" "); 
		}
		for ( int j = 1; j <= t; j++ ) {
			printf("%d", j);
		}
		t += 2;
		printf("\n");
	}
	return 0;
}
